/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : SR_tblDeliveryLines.cs         
 * Created by           : Auto - 04/23/2014 15:03:45                     
 * Last modify          : Auto - 04/23/2014 15:03:45                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class SR_tblDeliveryLines : BaseEntity
	{
		public SR_tblDeliveryLines()
		{
            this.Quantity = 0;
		}

	    #region Properties

		private Guid _RecordID;

        [Key]
		[Required]
        public Guid RecordID 
		{ 
			get
			{
                return _RecordID;
			}
			set 
			{ 
                _RecordID = value;
			} 
		}

		private string _ItemID;
		[Required]
        [MaxLength(20)]
        public string ItemID 
		{ 
			get
			{
                return _ItemID;
			}
			set 
			{ 
                _ItemID = value;
			} 
		}

		private decimal _Quantity;
		[Required]
        public decimal Quantity 
		{ 
			get
			{
                return _Quantity;
			}
			set 
			{ 
                _Quantity = value;
			} 
		}

		private string _UMID;
		[Required]
        [MaxLength(20)]
        public string UMID 
		{ 
			get
			{
                return _UMID;
			}
			set 
			{ 
                _UMID = value;
			} 
		}

		private string _Note;
        [MaxLength(200)]
        public string Note 
		{ 
			get
			{
                return _Note;
			}
			set 
			{ 
                _Note = value;
			} 
		}

		private Guid _RecLineID;
		[Required]
        public Guid RecLineID 
		{ 
			get
			{
                return _RecLineID;
			}
			set 
			{ 
                _RecLineID = value;
			} 
		}

		private string _DeliveryID;
		[Required]
        [MaxLength(20)]
        public string DeliveryID 
		{ 
			get
			{
                return _DeliveryID;
			}
			set 
			{ 
                _DeliveryID = value;
			} 
		}

		private string _UserID;
        [MaxLength(20)]
        public string UserID 
		{ 
			get
			{
                return _UserID;
			}
			set 
			{ 
                _UserID = value;
			} 
		}
		/// <summary>
        /// Column: SR_tblSalesOrdersLines.RecordID
        /// </summary>
		public SR_tblSalesOrdersLines SR_tblSalesOrdersLines { get;set; }

		/// <summary>
        /// Column: SR_tblDelivery.DeliveryID
        /// </summary>
		public SR_tblDelivery SR_tblDelivery { get;set; }


        #endregion
	}
}
